x11: Properly record the error when initializing GL
authorBenjamin Otte <otte@redhat.com>
Fri, 2 Jul 2021 01:21:14 +0000 (03:21 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 22 Jul 2021 14:23:56 +0000 (16:23 +0200)
commit74288eceaf3cdbd7dc4735c1b383f9da7dc5c68c
tree30a32b1f0b9fae517f38ffa72c760bf4317cf01f
parent37ba057128677a9d9b760622613f918941e3b028
x11: Properly record the error when initializing GL

That way, we can give a useful error message when things break down for
users.

These error messages could still be improved in places (like looking at
the actual EGL error codes), but that seemed overkill.
gdk/x11/gdkdisplay-x11.c
gdk/x11/gdkdisplay-x11.h
gdk/x11/gdkglcontext-egl.c
gdk/x11/gdkglcontext-glx.c
gdk/x11/gdkglcontext-x11.c
gdk/x11/gdkglcontext-x11.h